<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的订单 - 舞动健康</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入FontAwesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: {
                            light: '#ff7eb3',
                            DEFAULT: '#d44bdf',
                            dark: '#a742df',
                        }
                    },
                    fontFamily: {
                        sans: ['-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif']
                    },
                }
            }
        }
    </script>
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #a742df 0%, #ff7eb3 100%);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #a742df 0%, #ff7eb3 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
    </style>
</head>
<body class="font-sans bg-gray-50 text-gray-800 max-w-md mx-auto min-h-screen">
    <!-- 页面内容区 -->
    <main class="relative min-h-screen pb-6">
        <!-- 顶部导航栏 -->
        <div class="gradient-bg flex items-center justify-between px-4 py-4 sticky top-0 z-20 shadow-md">
            <a href="javascript:history.back()" class="text-white">
                <i class="fa-solid fa-arrow-left text-xl"></i>
            </a>
            <h1 class="text-lg font-medium text-center flex-1 text-white">我的订单</h1>
            <div class="w-8 flex justify-end">
                <i class="fa-solid fa-ellipsis-vertical text-white/80"></i>
            </div>
        </div>
        
        <!-- 订单类型选择器 -->
        <div class="bg-white border-b border-gray-100 sticky top-[57px] z-10">
            <div class="flex overflow-x-auto no-scrollbar">
                <button class="px-5 py-3 text-primary-DEFAULT font-medium relative flex-shrink-0">
                    全部
                    <span class="absolute bottom-0 left-0 w-full h-0.5 bg-primary-DEFAULT"></span>
                </button>
                <button class="px-5 py-3 text-gray-500 font-normal flex-shrink-0">
                    待支付
                </button>
                <button class="px-5 py-3 text-gray-500 font-normal flex-shrink-0">
                    已预约
                </button>
                <button class="px-5 py-3 text-gray-500 font-normal flex-shrink-0">
                    已完成
                </button>
                <button class="px-5 py-3 text-gray-500 font-normal flex-shrink-0">
                    已取消
                </button>
            </div>
        </div>
        
        <!-- 订单列表 -->
        <div class="p-4">
            <!-- 订单1 -->
            <div class="bg-white rounded-lg mb-4 overflow-hidden shadow-sm">
                <div class="p-4 border-b border-gray-100">
                    <div class="flex justify-between items-center">
                        <div class="flex items-center">
                            <i class="fa-solid fa-spa text-primary-DEFAULT mr-2"></i>
                            <span class="text-sm font-medium">和平里静心瑜伽馆</span>
                        </div>
                        <span class="text-primary-DEFAULT text-sm">已预约</span>
                    </div>
                </div>
                
                <div class="p-4">
                    <div class="flex">
                        <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-3">
                            <img src="https://images.unsplash.com/photo-1599447421416-3414500d18a5?q=80&w=200&auto=format&fit=crop" 
                                 alt="瑜伽课程" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <h3 class="text-sm font-medium mb-1">脊柱理疗瑜伽课程</h3>
                            <p class="text-xs text-gray-500 mb-2">李明 · 高级瑜伽教练</p>
                            <div class="text-xs text-gray-500">
                                10月15日（周日）14:00-15:30
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="border-t border-gray-100 p-3 flex justify-between items-center">
                    <div class="text-sm">
                        <span class="text-gray-500">实付: </span>
                        <span class="text-gray-800 font-medium">¥268.00</span>
                    </div>
                    <div class="flex space-x-2">
                        <a href="order_detail.html" class="px-3 py-1 border border-gray-300 rounded text-xs text-gray-700">
                            查看详情
                        </a>
                        <button class="px-3 py-1 bg-primary-DEFAULT text-white rounded text-xs">
                            再次预约
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 订单2 -->
            <div class="bg-white rounded-lg mb-4 overflow-hidden shadow-sm">
                <div class="p-4 border-b border-gray-100">
                    <div class="flex justify-between items-center">
                        <div class="flex items-center">
                            <i class="fa-solid fa-music text-pink-500 mr-2"></i>
                            <span class="text-sm font-medium">蓝调舞蹈工作室</span>
                        </div>
                        <span class="text-primary-DEFAULT text-sm">已完成</span>
                    </div>
                </div>
                
                <div class="p-4">
                    <div class="flex">
                        <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-3">
                            <img src="https://images.unsplash.com/photo-1508700929628-666bc8bd84ea?q=80&w=200&auto=format&fit=crop" 
                                 alt="爵士舞课程" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <h3 class="text-sm font-medium mb-1">现代爵士舞进阶课程</h3>
                            <p class="text-xs text-gray-500 mb-2">张教练 · 资深舞蹈教练</p>
                            <div class="text-xs text-gray-500">
                                10月10日（周二）19:00-20:30
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="border-t border-gray-100 p-3 flex justify-between items-center">
                    <div class="text-sm">
                        <span class="text-gray-500">实付: </span>
                        <span class="text-gray-800 font-medium">¥198.00</span>
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 border border-gray-300 rounded text-xs text-gray-700">
                            评价
                        </button>
                        <button class="px-3 py-1 bg-primary-DEFAULT text-white rounded text-xs">
                            再次预约
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 订单3 -->
            <div class="bg-white rounded-lg mb-4 overflow-hidden shadow-sm">
                <div class="p-4 border-b border-gray-100">
                    <div class="flex justify-between items-center">
                        <div class="flex items-center">
                            <i class="fa-solid fa-dumbbell text-blue-500 mr-2"></i>
                            <span class="text-sm font-medium">壹健身中心</span>
                        </div>
                        <span class="text-gray-500 text-sm">已取消</span>
                    </div>
                </div>
                
                <div class="p-4">
                    <div class="flex">
                        <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-3">
                            <img src="https://images.unsplash.com/photo-1532384748853-8f54a8f476e2?q=80&w=200&auto=format&fit=crop" 
                                 alt="健身课程" class="w-full h-full object-cover">
                        </div>
                        <div class="flex-1">
                            <h3 class="text-sm font-medium mb-1">力量训练私教课</h3>
                            <p class="text-xs text-gray-500 mb-2">王教练 · 资深健身教练</p>
                            <div class="text-xs text-gray-500">
                                9月30日（周六）10:00-11:00
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="border-t border-gray-100 p-3 flex justify-between items-center">
                    <div class="text-sm">
                        <span class="text-gray-500">已退款: </span>
                        <span class="text-gray-800 font-medium">¥320.00</span>
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 bg-primary-DEFAULT text-white rounded text-xs">
                            再次预约
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 无订单状态 -->
        <div class="hidden flex flex-col items-center justify-center h-[400px]">
            <div class="w-24 h-24 rounded-full bg-gray-100 flex items-center justify-center mb-4">
                <i class="fa-regular fa-calendar-xmark text-4xl text-gray-400"></i>
            </div>
            <p class="text-gray-500 mb-2">暂无相关订单</p>
            <a href="index.html" class="text-primary-DEFAULT text-sm flex items-center">
                <span>去首页看看</span>
                <i class="fa-solid fa-arrow-right ml-1"></i>
            </a>
        </div>
    </main>
</body>
</html> 